import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import set_node_cls from '@dfeidao/atom-web/ui/set-node-cls';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import p001 from './p001';


export default async function a001(fd: IFeidaoAiBrowserComponent, plan_list_no: string) {
	// todo
	const n = fd.data.node.querySelector<HTMLDivElement>('[data-id="edit1"]');
	set_node_cls(n, 'display-n', false);
	console.log(plan_list_no);

	const res = await nodejs<{ data: {}[]; }>('wangju/zj-000005/s001', {
		plan_list_no
	});
	console.log(res);

	render(fd, res, p001, 'p001', 'inner');
}
